home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Nibble Magazine
/
nib17.dsk
/
CUSTOM CATALOG.bas
< prev
next >
Wrap
BASIC Source File
|
2023-02-26
|
3KB
|
84 lines
10 REM **********************
20 REM * CUSTOM CATALOG *
30 REM * BY MASON JONES *
40 REM * COPYRIGHT (C) 1983 *
50 REM * BY MICROSPARC, INC *
60 REM * LINCOLN, MA. 01773 *
70 REM **********************
80 REM ***CATALOG***
90 TEXT : HOME : PRINT "*********** CUSTOM CATALOG ***********"
100 PRINT : PRINT TAB( 13);"BY MASON JONES": POKE 34,4
110 VTAB 20: PRINT "** COPYRIGHT 1983 BY MICROSPARC, INC. **": VTAB 6: INVERSE : HTAB 14: PRINT "CATALOG MENU"
120 NORMAL
130 PRINT : PRINT "1] CHANGE HEADING";
140 PRINT TAB( 20);"2] CHANGE LOCK SYMBOL"
150 PRINT "3] CHANGE TYPE";
160 PRINT TAB( 20);"4] CHANGE SIZES"
170 PRINT
180 PRINT "5] CHANGE NAMES";
190 PRINT TAB( 20);"6] QUIT"
200 CH = PEEK( -16384)
210 IF CH >175 AND CH <183 THEN 230
220 GOTO 200
230 POKE -16368,0
240 IF CH = 176 THEN TEXT : HOME : END
250 IF CH = 177 THEN 310
260 IF CH = 178 THEN 430
270 IF CH = 179 THEN 520
280 IF CH = 180 THEN 670
290 IF CH = 181 THEN 750
300 IF CH = 182 THEN END
310 HOME : PRINT
320 PRINT "WHEN ASKED, PLEASE INPUT THE HEADING"
330 PRINT : PRINT "YOU WISH TO BE SHOWN WHEN THE DISK"
340 PRINT : PRINT "IS CATALOGED. PLEASE DO NOT INPUT"
350 PRINT : PRINT "MORE THAN 12 CHARACTERS, OR IT MAY"
360 PRINT : PRINT "NOT WORK PROPERLY."
370 PRINT
380 INPUT "HEADING: ";HD$
390 IF HD$ = CHR$(17) THEN 820: REM CTL-Q
400 IF LEN(HD$) <12 THEN HD$ = HD$ +" ": GOTO 400
410 FOR X = 1 TO LEN(HD$):H1$ = MID$ (HD$,X,1): POKE 46011 -X,( ASC(H1$) +128): NEXT X
420 GOTO 820
430 HOME : PRINT
440 PRINT "WHEN ASKED, INPUT THE SYMBOL YOU WANT"
450 PRINT : PRINT "TO TAKE THE PLACE OF THE ASTERISK": PRINT
460 PRINT "FOR DENOTING A LOCKED FILE IN THE": PRINT
470 PRINT "CATALOG OF THE DISK. YOU MUST INPUT": PRINT : PRINT "ASCII CODE OF THE CHARACTER": PRINT : PRINT "WITH THE HIGH BIT SET.": PRINT
480 PRINT : INPUT "SYMBOL'S ASCII CODE: ";SY$: IF SY$ = CHR$(17) THEN 820: REM CTL-Q
490 SY = VAL(SY$)
500 POKE 44515,SY
510 GOTO 820
520 HOME : PRINT
530 PRINT "WHEN ASKED, INPUT ASCII CODE (HIGH ": PRINT
540 PRINT "BIT SET) OF THE SYMBOL YOU WANT TO STAND"
550 PRINT "FOR THE FILE TYPE MENTIONED. SIMPLY": PRINT
560 PRINT "PRESS <RETURN> TO PASS.": PRINT
570 PRINT : POKE 34,14
580 HOME : INPUT "APPLESOFT FILE: ";AF$:AF = VAL(AF$)
590 HOME : INPUT "INTEGER FILE: ";IN$:IN = VAL(IN$)
600 HOME : INPUT "BINARY FILE: ";BF$:BF = VAL(BF$)
610 HOME : INPUT "TEXT FILE: ";TF$:TF = VAL(TF$)
620 IF AF$ < >"" THEN POKE 45993,AF
630 IF IN$ < >"" THEN POKE 45992,IN
640 IF BF$ < >"" THEN POKE 45994,BF
650 IF TF$ < >"" THEN POKE 45991,TF
660 GOTO 820
670 HOME : PRINT
680 PRINT "YOU CAN EITHER:": PRINT
690 PRINT " 1) MAKE SIZES 000"
700 PRINT " 2) HAVE NO SIZES PRINTED"
710 PRINT : PRINT " CHOICE: ";: GET CH$: PRINT CH$:CH = VAL(CH$)
720 IF CH = 1 THEN POKE 44615,169: POKE 44616,0
730 IF CH = 2 THEN FOR X = 44643 TO 44645: POKE X,234: NEXT X
740 GOTO 820
750 HOME : PRINT
760 PRINT "YOU CAN EITHER:": PRINT
770 PRINT " 1) HAVE NO NAMES PRINTED"
780 PRINT " 2) HAVE NAMES SCRAMBLED"
790 PRINT : PRINT " CHOICE: ";: GET CH$: PRINT CH$:CH = VAL(CH$)
800 IF CH = 1 THEN FOR X = 44571 TO 44573: POKE X,234: NEXT X
810 IF CH = 2 THEN POKE 44542,32: POKE 44543,72: POKE 44544,249
820 TEXT : HOME : VTAB 12: PRINT "ANY FURTHER CATALOG REFINEMENTS? ";
830 GET B$: PRINT B$: IF B$ = "Y" THEN 80
840 HOME : PRINT CHR$(4);"CATALOG": END